//
//  NovelModel.m
//  UI数据库
//
//  Created by 王建男 on 14-9-9.
//  Copyright (c) 2014年 WJN_work@163.com. All rights reserved.
//

#import "NovelModel.h"

@implementation NovelModel

//自定义DabaseModel, 根据需求定义属性

- (void)dealloc
{
    [_book_name release];
    [_book_type release];
    [_book_author release];
    _book_name = nil;
    _book_type = nil;
    _book_author = nil;
    [super dealloc];
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        
    }
    return self;
}

+ (NovelModel *)novelModelWithId:(NSInteger )bookId name:(NSString *)bookName author:(NSString *)bookAuthor type:(NSString *)bookType
{
    NovelModel *novel = [[[NovelModel alloc] init] autorelease];
    novel.book_id = bookId;
    novel.book_name = bookName;
    novel.book_author = bookAuthor;
    novel.book_type = bookType;
    return novel;
}
@end
